/**
 * 
 */
package org.gkolpu.validation.oval.basetypes;

import java.io.Serializable;

import net.sf.oval.constraint.MaxLength;
import net.sf.oval.constraint.NotMemberOf;

import org.gkolpu.validation.oval.basetypes.enums.EmailType;


public class Email implements Serializable {

	@MaxLength(errorCode = "email.address.length", value = 100, 
			profiles = { "MYPROFILE" })
	@net.sf.oval.constraint.Email(errorCode = "email.address.matchPattern", profiles = { "MYPROFILE" }, allowPersonalName=false)
	private String address;


	@NotMemberOf(errorCode = "email.type.invalid", value = {"INVALID"},
			profiles = {"MYPROFILE"})
	private EmailType type;
}